.body{
  height:100vh;
  background: #000 url(./dog.png)  //背景色以及图片
  center no-repeat; //图片全部适应与页面
  background-size: cover;
  transform: scale(1.03); //解决模糊背景四周白边
  filter: blur(3px); //背景模糊
  position: relative;
}
.container {
  background-color:#e7e7e7e7; //设置背景颜色
  border-radius: 0.7rem; //设置圆角
  box-shadow: //设置阴影
  0 0.9rem 1.7rem rgba(0,0,0,0.25),
  0 0.7rem 0.7rem rgba(0,0,0,0.25); 
  height: 60vh;
  width: 60vw;
  position: absolute; //居中-- 相对于最近设置定位元素
  left: 50%; //对于最近设置定位元素的50%
  top: 50%; //
  transform: translate(-50%,-50%); //移动自己的一半
  .containerForm{
    border-radius: 0.7rem; //设置圆角
    height:100%;
    width: 50%;
    position: absolute;
    top:0;
    transition: all 0.6s ease-in-out;
    .containerSignin{
      position: absolute;
      left: 0;
      top:25%;
      left: 20%;
      .loginform{
        max-width: 70%;
        .loginformforgot{
          float: right;
        }
        .loginformbutton{
          width: 100%;
        }
      }
    }
    .containerSignup{
      position: relative;
      left: 0;
      opacity: 0;
      width: 100%;
      height: 100%;
      z-index: 1;
       .loginform{
        position: absolute;
        top:25%;
        left: 20%;
        max-width: 70%;
        .loginformforgot{
          float: right;
        }
        .loginformbutton{
          width: 100%;
        }
      }
      &.panelActive{
       opacity: 1;
       z-index: 5;
       transform: translateX(100%);  //本来在login 的下面，激活向右位移
      }
    }
    .containerOverlay{
      background-color: #fff;
      width: 50%;
    }
  }
  .containerOverlay{
    border-radius: 0.7rem; //设置圆角
    float: right;
    height:100%;
    width: 50%;
    overflow: hidden;
    top:0px;
    position: absolute;
    left: 50%;
    z-index: 100;
    transition: all 0.6s ease-in-out ;
    &.panelActive{
      transform: translateX(-100%);;
    }
    .overlay{
      width: 200%;
      height: 100%;
      position: relative;
      left: -100%;
      background: #000 url(./dog.png)  //背景色以及图片
      center no-repeat; //图片全部适应与页面
      background-size: cover;
      transition: all 0.6s ease-in-out ;
      transform: translateX(0);
      &.panelActive{
        transform: translateX(50%);;
      }
      .overlayP{
        height: 100%;
        width:50%;
        position: absolute;
        top: 0;
        display: flex;
        align-items: center;
        // flex-direction: column;
        transform: translateX(0);
        transition: all 0.6s  ease-in-out;
        &.overlaLeft{
          transform: translateX(-20%);
        }
        &.overlayRight{
          justify-content:flex-end;
          right:0;
          transform: translateX(0);
          .panelActive{
            transform: translateX(-20%);
          }
        }
      }
    }
  }
}
  .button1 {
    margin-right: 4px;
    white-space: nowrap;
  }
  .button2 {
    margin-left: 4px;
    white-space: nowrap;
    
  }